<%--
  Created by IntelliJ IDEA.
  User: HuangLiting
  Date: 2018/5/23
  Time: 21:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html ng-app="tmApp">
<head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    <link rel="stylesheet" type="text/css" href="css/layui.css"/>
    <link rel="stylesheet" type="text/css" href="css/admin.css"/>
    <link rel="stylesheet" type="text/css" href="css/main.css"/>
    <link rel="stylesheet" type="text/css" href="css/houtai.css"/>
    <script type="text/javascript" src="js/libs/modernizr.min.js"></script>
</head>
<body ng-controller="tmController">
<jsp:include page="/header.jsp"></jsp:include>
<div class="container clearfix">
    <jsp:include page="/leftBar.jsp"></jsp:include>
    <!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="#" color="#white">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">教师信息</span></div>
        </div>
        <div class="new_function_area">
            <blockquote class="layui-elem-quote">
                <a href="/addTeacherUrl.do" class="layui-btn layui-btn-small" id="add">
                    <i class="layui-icon">&#xe608;</i> 新增信息
                </a>
                <div class="input_search">
                    <input name="tname-search" type="text" ng-model="tname"/>
                    <a class="layui-btn layui-btn-small" id="search" ng-click="getTeacherMsg()">
                        <i class="layui-icon">&#xe615;</i> 搜索
                    </a>
                </div>
            </blockquote>
            <fieldset class="layui-elem-field">
                <legend>数据列表</legend>
                <div class="layui-field-box layui-form">
                    <table class="layui-table admin-table fix-table-layout">
                        <thead>
                        <tr>
                            <th>教工号</th>
                            <th>教师姓名</th>
                            <th>职称</th>
                            <th>联系方式</th>
                            <th>注册时间</th>
                            <th>角色</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody id="content">
                        <tr ng-repeat="msg in list">
                            <td ng-bind="msg.tid"></td>
                            <td ng-bind="msg.tname"></td>
                            <td ng-bind="msg.professinalTitle"></td>
                            <td ng-bind="msg.contactWay"></td>
                            <td ng-bind="msg.registerTime"></td>
                            <td>
                                <span ng-if="msg.role == 0">教师</span>
                                <span ng-if="msg.role == 1">管理员</span>
                            </td>
                            <td><a href="/updateTeacherUrl.do?tid={{msg.tid}}">查看</a></td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </fieldset>
        </div>
    </div>
    <!--/main-->
</div>
</body>
<script src="js/jquery.min.js"></script>
<script src="js/angular.min.js"></script>
<script src="js/teachermsg.js"></script>
</html>
